package com.example.stock.excel;

import com.alibaba.excel.annotation.ExcelProperty;
import com.example.stock.util.DoubleSerialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import lombok.Getter;
import lombok.Setter;

@Getter
@Setter
public class StockInfo {

    @ExcelProperty("trade_code")
    private String tradeCode;

    @ExcelProperty("name")
    private String stock;

    @ExcelProperty("wg")
    private Integer wg;

    @ExcelProperty("tag")
    private String tag;

    @ExcelProperty("roe")
    @JsonSerialize(using = DoubleSerialize.class)
    private Double roe;

    @ExcelProperty("pe_ratio")
    @JsonSerialize(using = DoubleSerialize.class)
    private Double peRatio;

    @ExcelProperty("pb_ratio")
    @JsonSerialize(using = DoubleSerialize.class)
    private Double pbRatio;

    @ExcelProperty("market_cap")
    @JsonSerialize(using = DoubleSerialize.class)
    private Double marketCap;

    @ExcelProperty("category")
    private String category;

    @ExcelProperty("bonus_ratio_rmb")
    private Double bonusRatioRmb;

    @ExcelProperty("rank")
    private int rank;
}